package com.shan.oss.constant;

import com.shan.common.base.BaseConstants;
import com.shan.common.util.PropertiesFileUtil;

/**
 * Author: shanzheng <br/>
 * Description: oss系统常量工具类<br/>
 * Date： 14:03 2017/9/6.<br/>
 * Modified By: <br/>
 */
public class OssConstant extends BaseConstants {
    // endpoint
    public static final String ALIYUN_OSS_ENDPOINT = PropertiesFileUtil.getInstance("config").get("aliyun.oss.endpoint");

    //bucketName
    public static final String ALIYUN_OSS_BUCKET_NAME = PropertiesFileUtil.getInstance("config").get("aliyun.oss.bucketName");

    //文件大小
    public static final int ALIYUN_OSS_MAX_SIZE = PropertiesFileUtil.getInstance("config").getInt("aliyun.oss.maxSize");

    //签名有效期（单位：分钟）
    public static final int ALIYUN_OSS_EXPIRE = PropertiesFileUtil.getInstance("config").getInt("aliyun.oss.policy.expire");
}
